﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="AuthorApplication.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.WebForm10" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">

  <table style="width:100%;">
        <tr>
            <td>

<asp:GridView ID="gridApplicationList" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="ID,Email" AllowPaging="True" CssClass="grid" 
                    OnPageIndexChanging="gridApplicationList_OnPageIndexChanging">
                <Columns>
                                 <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbSelect" runat="server" />
                        </ItemTemplate>
                     </asp:TemplateField>
                    <asp:TemplateField HeaderText="User ID" visible="false" >
                        <ItemTemplate>
                        <asp:Label id="lblID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Profile Picture">
                        <ItemTemplate>
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ProfilePicture") %>' AlternateText="Profile Picture" CssClass="smallImage3" />
                        
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Applicant's Name">
                        <ItemTemplate>
                            <asp:Label id="lblFName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                        </ItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="Email">
                        <ItemTemplate>
                            <asp:Label id="lblEmail" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Email") %>'></asp:Label>
                        </ItemTemplate>
                     </asp:TemplateField>
                    <asp:TemplateField HeaderText="Application Date">
                        <ItemTemplate>
                        <asp:Label id="lblDate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Date") %>'></asp:Label>
                        </ItemTemplate>
                     </asp:TemplateField>
   
                </Columns>
                <PagerStyle CssClass="pager" />
            </asp:GridView>
    
    
    
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblNotification" runat="server" CssClass="label" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="text-align: center">
    
    
                
 
                  <asp:Button ID="btnApprove" runat="server" Text="Approve" 
        onclick="btnApprove_Click" CssClass="genericButton" />
               


                <asp:Button ID="btnDeny" runat="server" Text="Deny" onclick="btnDeny_Click1" 
                    CssClass="genericButton" />


            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
</asp:Content>
